<!doctype html>
<html lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.8.0">
<meta charset="utf-8">
<title>jQuery的jsonp跨域 - Guolei&#39;s blog</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<link rel="canonical" href="https://c1.gitee.io/post/20170418_前端_jQuery的jsonp跨域/">
<link rel="icon" type="image/x-icon" href="/head-0014.jpg">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="translucent">
<meta name="description" content="12345678910111213141516var param = &apos;xxx&apos;;$((function)&amp;#123;    $.ajax(&amp;#123;        url: &quot;http://test.com:8080/path/interfaceName?param=&quot; + param, //请求路径+参数        success: function(json) &amp;#123;">
<meta name="keywords" content="jsonp">
<meta property="og:type" content="website">
<meta property="og:title" content="jQuery的jsonp跨域">
<meta property="og:url" content="https://c1.gitee.io/post/20170418_前端_jQuery的jsonp跨域/index.html">
<meta property="og:site_name" content="Guolei&#39;s blog">
<meta property="og:description" content="12345678910111213141516var param = &apos;xxx&apos;;$((function)&amp;#123;    $.ajax(&amp;#123;        url: &quot;http://test.com:8080/path/interfaceName?param=&quot; + param, //请求路径+参数        success: function(json) &amp;#123;">
<meta property="og:locale" content="zh-Hans">
<meta property="og:image" content="https://i.loli.net/2018/11/02/5bdbbd369a66a.jpg">
<meta property="og:updated_time" content="2018-11-19T09:42:52.069Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="jQuery的jsonp跨域">
<meta name="twitter:description" content="12345678910111213141516var param = &apos;xxx&apos;;$((function)&amp;#123;    $.ajax(&amp;#123;        url: &quot;http://test.com:8080/path/interfaceName?param=&quot; + param, //请求路径+参数        success: function(json) &amp;#123;">
<meta name="twitter:image" content="https://i.loli.net/2018/11/02/5bdbbd369a66a.jpg">
<link rel="stylesheet" href="/theme.a990771bb38c6f1486a3.css">
<link rel="stylesheet" href="/fonts.e15b7f98c5fa14803416.css">
<link rel="stylesheet" href="/styles.15f0d614df0a9a578c2c.css">
<script src="/config.449a4849be7bee35a70f.js"></script>
<script>
      var _hmt = _hmt || [];
      (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?efc47a720a7ce4721762f7cf27d1e35f";
        var s = document.getElementsByTagName("script")[0]; 
        s.parentNode.insertBefore(hm, s);
      })();
      </script></head>
<body>
<is-root></is-root>
<script src="/runtime.ec2944dd8b20ec099bf3.js"></script>
<script src="/polyfills.d08f09f49682da52980e.js"></script>
<script src="/main.ba7a3848af36b2928995.zh-Hans.js"></script></body>
</html>
